import { Navigate } from 'react-router-dom'
import { Children, lazy } from 'react'
let Login = lazy(()=>import('../../views/long/login'))
let Index = lazy(()=>import('../../views/long/index'))
let Ren = lazy(()=>import('../../views/long/zhic/ren'))
let Sjh = lazy(()=>import('../../views/long/zhic/sjh'))
let Deng = lazy(()=>import('../../views/long/zhic/deng'))
let Zhu = lazy(()=>import('../../views/long/zhic/zhu'))
let Hui = lazy(()=>import('../../views/long/zhic/hui'))
let Slogin = lazy(()=>import('../../views/long/sjlogin'))
let Zhang = lazy(()=>import('../../views/long/sj/zhang'))
let Sjyam = lazy(()=>import('../../views/long/sj/sjyam'))
let Sjren = lazy(()=>import('../../views/long/sj/sjren'))
let Sjzhu = lazy(()=>import('../../views/long/sj/sjzhu'))
let Sjhui = lazy(()=>import('../../views/long/sj/sjhui'))
import PcTong from '../../goods/tong' 
import SJTong from '../../goods/sjtong' 
let Long=[
   {
       path:'/login',
       element: <Login></Login>,
       children:[
           {
               path:'deng',
               element:<Deng></Deng>
           },        
           {
                path:'ren',
                element:<Ren></Ren>
           },
           {
                path:'sjh',
                element:<Sjh></Sjh>
           },
           {
                path:'hui',
                element:<Hui></Hui>
           },
       ]
   },
   {
    path:'zhu',
    element:<Zhu></Zhu>
    },
   {
       path:'/index',
       element:<Index></Index>
   },
   {
       path:'/sjlogin',
       element:<SJTong><Slogin></Slogin></SJTong> ,
       children:[
           {
                path:'zhang',
                element:<Zhang></Zhang>,
           },
           {
                path:'sjyam',
                element:<Sjyam></Sjyam>,
           },
           {
            path:'sjren',
            element:<Sjren></Sjren>,
           },
           {
            path:'sjzhu',
            element:<Sjzhu></Sjzhu>,
           },
           {
            path:'sjhui',
            element:<Sjhui></Sjhui>,
           },
       ]
   },
   {
       path:'/',
       element:<Navigate to='/sjlogin'></Navigate>
   }
]

export default Long